<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?=link_tag('favicon.ico', 'shortcut icon', 'image/ico');?>

	<script type="text/javascript">
		var TIPPSPIEL = {
			admin_url : "<?=site_url("admin");?>",
			base_url : "<?=base_url();?>",
			bulitable : false
		};
	</script>

<?php if ($isAdmin): ?>
	<link  href="<?=site_url('minifier/css/1');?>/<?=$version;?>" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<?=site_url('minifier/js/1');?>/<?=$version;?>"></script>
<?php else: ?>
	<link  href="<?=site_url('minifier/css/0');?>/<?=$version;?>" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<?=site_url('minifier/js/0');?>/<?=$version;?>"></script>
<?php endif; ?>

	<title><?=$meta_title;?></title>
</head>
<body>
<!-- Tippspiel Skript Version: <?=$version?> -->

<div id="frame">


<div id="navigation">
	<h1><?=$maintitle;?></h1>
	<?php include('subtitle.php');?>

	<ul id="nav">
	  <?php foreach($navitems as $item): ?>
	
		<?php if ($item == $goto): ?>
			<li class="active"><?=anchor($item, lang('nav_'.$item));?></li>
		<?php else: ?>
			<li><?=anchor($item, lang('nav_'.$item));?></li>
		<?php endif; ?>
	  <?php endforeach; ?>
	</ul>

	<?php if ($isAdmin): ?>
	<ul id="adminnav">
		<li<?php if($agoto == 'admin') echo' class="active"';?>><?=anchor('admin', 'Ergebnisse');?></li>
		<li<?php if($agoto == 'useredit') echo' class="active"';?>><?=anchor('admin/useredit', 'Benutzerdaten');?></li>
		<li<?php if($agoto == 'newsletter') echo' class="active"';?>><?=anchor('admin/newsletter', 'Newsletter');?></li>
		<li<?php if($agoto == 'configuration') echo' class="active"';?>><?=anchor('admin/configuration', 'Konfigurationen');?></li>
	</ul>
	<?php endif; ?>  
		
</div>

<div id="content"<?php if (strlen($agoto) > 0) echo ' class="admin"'; ?>>
	<?php if (isset($status)) echo '<div class="status">'.$status.'</div>';?>
	<?=$content?>
</div>

<div id="footer">
	<?=$footer?>
	<?php if ($goto != 'login'): ?>
		<div id="sportalTable">
			<script type="text/javascript" src="http://www.sportal.de/content/js/dlcstandings.js"></script>
		</div>
	<?php endif; ?>
</div>

</div> <!-- frame end -->

</body>
</html>